package com.util;

import java.lang.reflect.InvocationTargetException;

/**
 * @author Cc
 * 2024-03-29
 */
public class GenericsObjectUtil {
    public static <T> T createObject(Class<T> param) throws NoSuchMethodException, InvocationTargetException, InstantiationException, IllegalAccessException {
        return param.getConstructor().newInstance();
    }
}
